package com.springclou.alibaba.sentinel.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:RenPu
 * @Date: 2020/7/4 12:47
 * @Version: 1.0
 * @description:
 */

@RestController
public class NacosSentinelController {

    @Value("${server.port}")
    private String SERVER_PORT;


    @GetMapping(value = "sentinel/sentinelServerTestMenthod1")
    public String sentinelServerTestMenthod1(){
        return "当前的服务端口为:"+ SERVER_PORT+"此方法是方法1************O(∩_∩)O哈哈~";
    }


    @GetMapping(value = "sentinel/sentinelServerTestMenthod2")
    public String sentinelServerTestMenthod2(){
        return "当前的服务端口为:"+SERVER_PORT+"此方法是方法2************O(∩_∩)O哈哈~";
    }



}
